package round78;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * User: Samuel
 * Date: 07-22-11
 * Time: 09:23 AM
 */
public class B {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(in.readLine());
        int[] nums = new int[N];

        int total = 0, val;
        for (int i = 0; i < N; i++) {
            nums[i] = Integer.parseInt(in.readLine());
            total += nums[i];
        }
        val = total / N;
        int diff = 0;
        for (int i = 0; i < nums.length; i++) {
            if (nums[i] != val) {
                diff++;
            }
        }
        if (diff == 0) {
            System.out.println("Exemplary pages.");
            System.exit(0);
        }
        if (diff == 2) {
            int a, b, ids[] = new int[2], index = 0;
            for (int i = 0; i < nums.length; i++) {
                if (nums[i] != val) {
                    ids[index++] = i;
                }
            }
            a = nums[ids[0]];
            b = nums[ids[1]];
            if (a < val && val - a == b - val) {
                System.out.printf("%d ml. from cup #%d to cup #%d.%n", val - a, ids[0] + 1, ids[1] + 1);
                System.exit(0);
            } else if (b < val && val - b == a - val) {
                System.out.printf("%d ml. from cup #%d to cup #%d.%n", val - b, ids[1] + 1, ids[0] + 1);
                System.exit(0);
            }
        }
        System.out.println("Unrecoverable configuration.");
    }
}
